package org.example.pojo;

/**
 * @auther admin闫
 * @Descriptopn
 * @date 2024/3/23 18:57
 */
public class User {
    private Long id;
    private String username;
    private String email;

    // 无参构造函数
    public User() {}

    // 带参构造函数
    public User(String username, String email) {
        this.username = username;
        this.email = email;
    }

    // Getter 和 Setter 方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
